import request from '@/utils/request'

// 查询紫外灯巡检记录列表
export function listUltravioletlamp(query) {
  return request({
    url: '/Productionline/ultravioletlamp/list',
    method: 'get',
    params: query
  })
}

// 查询紫外灯巡检记录详细
export function getUltravioletlamp(id) {
  return request({
    url: '/Productionline/ultravioletlamp/' + id,
    method: 'get'
  })
}

// 新增紫外灯巡检记录
export function addUltravioletlamp(data) {
  return request({
    url: '/Productionline/ultravioletlamp',
    method: 'post',
    data: data
  })
}

// 修改紫外灯巡检记录
export function updateUltravioletlamp(data) {
  return request({
    url: '/Productionline/ultravioletlamp',
    method: 'put',
    data: data
  })
}
export function checkUltravioletlamp(data) {
  return request({
    url: '/Productionline/ultravioletlamp/check',
    method: 'put',
    data: data
  })
}
// 删除紫外灯巡检记录
export function delUltravioletlamp(id) {
  return request({
    url: '/Productionline/ultravioletlamp/' + id,
    method: 'delete'
  })
}
